package com.asianrapid.service.impl.sys;


import com.asianrapid.dao.LqrjDao;
import com.asianrapid.model.sys.LqrjEntity;
import com.asianrapid.service.sys.LqrjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "lqrjServiceImpl")
public class LqrjServiceImpl implements LqrjService {

	@Autowired
	private LqrjDao lqrjDao;

	@Override
	public List<LqrjEntity> getalllqrj(int pageSize, int start) {
		int stats = 0;
		List<LqrjEntity> alllqrj = lqrjDao.getalllqrj(stats,pageSize,start);
		return alllqrj;
	}
	@Override
	public int getCount() {
		int stats = 0;
		int result =  lqrjDao.getCount(stats);
		return result;
	}

	@Override
	public void insertlqrj(LqrjEntity lqrjEntity){
		lqrjEntity.setStats(0);
		lqrjDao.insertlqrj(lqrjEntity);
	}

	@Override
	public void updatelqrj(LqrjEntity lqrjEntity){
		lqrjDao.updatelqrj(lqrjEntity);
	}

	@Override
	public LqrjEntity getById(Integer groupId){

		return lqrjDao.getById(groupId);

	}

	@Override
	public void deletelqrj(List<String> groupId){

		lqrjDao.deletelqrj(groupId);
	}
}
